#include"Queue.h"

void QueueTest()
{
    Queue q;
    QueueInit(&q);

    QueuePush(&q, 1);
    QueuePush(&q, 2);
    QueuePush(&q, 3);
    QueuePush(&q, 4);
    QueuePush(&q, 5);

    while(!QueueEmpty(&q))
    {
        printf("%d ", QueueFront(&q));
        QueuePop(&q);
    }
    printf("\n");

    QueuePush(&q, 5);
    QueuePush(&q, 6);
    QueuePush(&q, 7);
    printf("%d \n", QueueBack(&q));

    printf("%d \n", QueueSize(&q));
    QueueDestory(&q);
}
int main()
{
    QueueTest();
    return 0;
}
